package HandshakeJoin;

import com.google.common.base.Preconditions;

public class JoinConfig
{
    private String name;
    private String id = null;
    private int joinFieldInR = 0;
    private int joinFieldInS = 0;

    public JoinConfig() {
        name = "Default Join";
    }

    public JoinConfig(final String name, final int id, final int fieldInR,
            final int fieldInS) {
        this.name = Preconditions.checkNotNull(name);
        this.id = Integer.toString(id);
        this.joinFieldInR = fieldInR;
        this.joinFieldInS = fieldInS;
    }

    public String getName() {
        return name;
    }

    public String getId() {
        return id;
    }

    public int getJoinFieldInR() {
        return joinFieldInR;
    }

    public int getJoinFieldInS() {
        return joinFieldInS;
    }
}